#ifndef __GUI_H__
#define __GUI_H__

#include "board.h"



#define    back_color 0xDB13
#define    brightness_color 0XF745
#define    brightness_color_main 0XF745
#define    rotation_color 0x14BA
#define    unit_color 0x7ffa
#define    lcdconfig_color 0x8811


typedef enum
{
    back_page = 0,
    brightness_page,
    brightness_page_main,
    rotation_page,
    unit_page,
    lcdconfig_page,
} page_t;

typedef union
{
    struct
    {
        uint16_t back_main_flag : 1 ;
        uint16_t brightness_flag : 5;
        uint16_t rotation_flag : 1 ;
        uint16_t uint_flag: 1 ;
        uint16_t lcdconfig_negative_flag : 1 ;
        uint16_t lcdconfig_rgb_flag : 1 ;
        uint16_t gui_none_flag : 6 ;
    };
    uint8_t gui_all_flag_8[2];
    uint16_t gui_all_flag;
} gui_flag_struct;

extern gui_flag_struct gui_flag;

void gui_menu(void);

void gui_load_picture_buf_56x56(const uint8_t * bmp_buf,uint8_t * picture,uint16_t fc,uint16_t bc);

#endif
